import request from '@/api/request'

const getDetail = async (depotNumber: any) => {
    const resp = await request.get('report/getDetail', {
        params: {
            number: depotNumber
        }
    })
    return resp.data;
}

const getDepotHead = async (headNumber) => {
    const resp = await request.get('report/getDeportHead', {
        params: {
            headNumber
        }
    })
    return resp.data;
}

/**
 * 查询账单详情
 * @param headNumber 账单单据
 * @param subType 账单类型
 * @returns 
 */
const getAccountHeadDetail = async (headNumber, subType) => {
    const resp = await request.get('report/getAccountHeadDetail', {
        params: {
            headNumber, subType
        }
    })
    return resp.data
}




export { getDetail, getDepotHead, getAccountHeadDetail }